]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Add extended keys and language popups to top window group
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 18 Jun 2019 22:24:01 +0000 (00:24 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 18 Jun 2019 22:30:17 +0000 (00:30 +0200)
As per commit 2bd80579ed important actors are added to the top window group
using the layout's addTopChrome method.

This group includes the on-screen keyboard, however its popups were not added
and so they are now shown under the OSK and don't receive any input.

Fix this by adding Language popup and extended keys popup to top chrome.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1396
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/583

js/ui/keyboard.js

index b57aeec0c66c2d026104f9d4cc6e29c033f0a0f5..b6a26663ac689fe6d68745276ccc63c6a9433538 100644 (file)
@@ -282,7 +282,7 @@ var Key = class Key {
                                                        y_fill: true,
                                                        x_align: St.Align.START });
         this._boxPointer.hide();
-        Main.layoutManager.addChrome(this._boxPointer);
+        Main.layoutManager.addTopChrome(this._boxPointer);
         this._boxPointer.setPosition(this.keyButton, 0.5);
 
         // Adds style to existing keyboard style to avoid repetition
@@ -1306,7 +1306,7 @@ var Keyboard = class Keyboard {
             this._languagePopup.destroy();
 
         this._languagePopup = new LanguageSelectionPopup(keyActor);
-        Main.layoutManager.addChrome(this._languagePopup.actor);
+        Main.layoutManager.addTopChrome(this._languagePopup.actor);
         this._languagePopup.open(true);
     }